package net.heri.xmppchat.persistence;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(daoClass = ChatSessionDao.class, tableName = "xmpp_chat_sessions")
public class ChatSession {

	@DatabaseField(columnName = "id", generatedId = true)
	private Long sessionId;	
	@DatabaseField(columnName = "subject", canBeNull = false)
	private String subject;	
	@DatabaseField(columnName = "group_chat", canBeNull = false)
	private boolean groupChat;		
	
	public ChatSession() {
		// TODO Auto-generated constructor stub
	}

	public Long getSessionId() {
		return sessionId;
	}

	public void setSessionId(Long sessionId) {
		this.sessionId = sessionId;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public boolean isGroupChat() {
		return groupChat;
	}

	public void setGroupChat(boolean groupChat) {
		this.groupChat = groupChat;
	}	
	
}
